![]() |
PBOpenForkAsync |
||||
Header: | Files.h | Carbon status: | Supported | |
Opens any fork of a file or directory for streaming access.
void PBOpenForkAsync ( FSForkIOParam *paramBlock );
A pointer to a parameter block.
The relevant fields of the parameter block are:
On input, a pointer to a completion routine.
On output, the result code of the function.
On input, the file or directory containing the fork to open.
On input, the length of the fork name in Unicode characters.
On input, the name of the fork to open in Unicode. You can obtain the string constants for the data fork and resource fork using the FSGetDataForkName and FSGetResourceForkName calls.
On input, the access (read and/or write) you want. This value controls the way the file can be accessed via the returned fork reference (read-only or read/write). It is the same as the permission parameter passed to FSpOpenDF and FSpOpenRF.
On output, the reference number for accessing the open fork. The fork may be larger than 2GB, and is allowed to grow to 2GB or larger.
FSReadFork, FSWriteFork, FSCloseFork and related calls all require streaming access.
Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)